﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HoangPhap.Bussiness
{
    public class CharityProgramCategory
    {
        public int DeleteById(int id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramCategoriesDeleteById(id);
        }

        public int DeleteDynamic(System.String whereCondition)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramCategoriesDeleteDynamic(whereCondition);
        }

        public int Insert(System.DateTime createdDate, System.DateTime updatedDate, System.Int32 systemSubAdminId, System.Int32 status, System.Int32 editorId, ref System.Int32 id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramCategoriesInsert(createdDate, updatedDate, systemSubAdminId, status, editorId, ref  id);
        }

        public int Update(System.Int32 id, System.DateTime createdDate, System.DateTime updatedDate, System.Int32 systemSubAdminId, System.Int32 status, System.Int32 editorId)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramCategoriesUpdate(id, createdDate, updatedDate, systemSubAdminId, status, editorId);
        }
    }
}
